import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';

import {Observable} from "rxjs/Observable";
import 'rxjs/add/operator/map';

@Injectable()
export class RosterMapProvider {
    constructor(public http: HttpClient) {
    }


    getRosterCustomerList(jsonArray:any):Observable<any>{
        const url = '/party/v1/detectLocation';
        return this.http.post(url,jsonArray).map(r=>{
            return r;
        });
    }
}
